/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.pucp.Maestros.DAO;

import org.hibernate.Session;
import org.hibernate.Transaction;
import pe.edu.pucp.Modelo.TipoDocumento;
import pe.edu.pucp.Util.HibernateUtil;

/**
 *
 * @author oscar
 */
public class TipoDocDAO {
    public void guardarTipoDoc(TipoDocumento c) {
        Session session = HibernateUtil.getSessionFactory().openSession();
        Transaction tx =  session.beginTransaction();
        session.save(c);
        tx.commit();
        session.close();
    }
    
}
